﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;

namespace 枸杞VBE插件.Core.Models
{
    internal class CodeContext : DbContext
    {
        public DbSet<Code>? Codes { get; set; }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlite("Data Source=代码库.db");
            optionsBuilder.UseLazyLoadingProxies();
        }
    }
}